<?php
/**
 * Created by PhpStorm.
 * User: 15814
 * Date: 2018/10/9
 * Time: 15:30
 */
include "config.php";

$sql="SELECT * FROM `goodsinfo` WHERE `uId`=?";
$ready=$conn->prepare($sql);
$ready->bind_param("i",$_POST["uId"]);
$ready->execute();
$res=$ready->get_result();
$arr=array();
while ($row=$res->fetch_row()){
    array_push($arr,$row);
}
print_r(json_encode($arr));
